﻿using System;
using System.Collections.Generic;
using System.Text;
using Task.Entity;
using Task.Interface;
using System.Collections;
using MyLib.Data;

namespace Task.Logic
{
    class ProcessCategoryLogic :IProcessCategory
    {
        public List<ProcessCategoryEntity> GetList()
        {
            return DataAccess.Instance().GetList<ProcessCategoryEntity>("ProcessCategoryLogic_GetList", null);
        }

        public List<ProcessEntity> GetProcessList(string categoryName)
        {
            return DataAccess.Instance().GetList<ProcessEntity>("ProcessCategoryLogic_GetProcessList", categoryName);
        }
    }
}
